From 0dd1102cc4c6c2c42a709a6e6d262933ad3eb6d6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Jun 2014 09:28:39 -0400 Subject: [PATCH] GtkSeparator: Explicitly notify orientation --- gtk/gtkseparator.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gtk/gtkseparator.c b/gtk/gtkseparator.c index d8452f1cf9..8c6d49254e 100644 --- a/gtk/gtkseparator.c +++ b/gtk/gtkseparator.c @@ -70,9 +70,13 @@ gtk_separator_set_property (GObject *object, switch (prop_id) { case PROP_ORIENTATION: - private->orientation = g_value_get_enum (value); - _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object)); - gtk_widget_queue_resize (GTK_WIDGET (object)); + if (private->orientation != g_value_get_enum (value)) + { + private->orientation = g_value_get_enum (value); + _gtk_orientable_set_style_classes (GTK_ORIENTABLE (object)); + gtk_widget_queue_resize (GTK_WIDGET (object)); + g_object_notify_by_pspec (object, pspec); + } break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); -- 2.30.2